package com.hackintosh.abstractFactory;

/**
 * @description：
 * @author：twislyn
 * @date：Created in 2021/05/08
 * @modified By：
 * @version: 1.0
 */
public class FarmTest {
    public static void main(String[] args) {
        try {
            Farm farm = new SRfarm();

            Animal animal = farm.newAnimal();

            Plant plant = farm.newPlant();

            animal.show();
            plant.show();
        } catch (Exception e) {
            System.out.println(e.getMessage());
        }
    }
}
